﻿<UserControl xmlns:my1="clr-namespace:VAdvantage.Controls"  xmlns:my="clr-namespace:VAdvantage.Grids"  xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="VAdvantage.Panels.GridController"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" >

        <Grid.RowDefinitions>
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0"  MaxWidth="500" />
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid Name="treeContainer" Background="AliceBlue" Grid.Column="0" Grid.Row="0" />
        <sdk:GridSplitter  x:Name="grsplSplitterV"   Grid.Row="0" Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Center" Background="Gray" Width="0" />
        <Grid x:Name="grdMainArea"  Grid.Row="0" Grid.Column="2">

            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <sdk:GridSplitter x:Name="grsplSplitterH"   Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Stretch" Background="Gray" Height="5" />
            <ScrollViewer Name="vPanelViewer" BorderThickness="0"    Grid.Row="0" Grid.Column="0">
                <my:VGrid x:Name="vPanel" >
                </my:VGrid>
            </ScrollViewer>
            <my1:VDataGrid x:Name="vTable" ShowRowNumber="True"  HeadersVisibility="All"        Grid.Row="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
        </Grid>
    </Grid>
</UserControl>
 